.class public Lcom/xingbook/ui/af;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/view/View$OnClickListener;


# static fields
.field private static a:Lcom/xingbook/ui/af;


# instance fields
.field private b:Z

.field private c:Z

.field private d:Z

.field private e:Lcom/xingbook/ui/XbLayout;

.field private f:Lcom/xingbook/ui/ad;

.field private g:Lcom/xingbook/ui/ad;

.field private h:Lcom/xingbook/ui/ad;

.field private i:Lcom/xingbook/ui/ad;

.field private j:Landroid/widget/TextView;

.field private k:Landroid/view/ViewGroup;

.field private l:Landroid/content/Context;

.field private m:F

.field private n:I

.field private o:I

.field private p:I

.field private q:I

.field private r:I

.field private s:I

.field private t:I


# direct methods
.method private constructor <init>(Landroid/app/Activity;)V
    .locals 2

    const/4 v1, 0x0

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    iput-boolean v1, p0, Lcom/xingbook/ui/af;->b:Z

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/xingbook/ui/af;->c:Z

    iput-boolean v1, p0, Lcom/xingbook/ui/af;->d:Z

    invoke-static {p1}, Lcom/xingbook/c/n;->f(Landroid/app/Activity;)F

    move-result v0

    iput v0, p0, Lcom/xingbook/ui/af;->m:F

    const/high16 v0, 0x4416

    iget v1, p0, Lcom/xingbook/ui/af;->m:F

    mul-float/2addr v0, v1

    invoke-static {v0}, Ljava/lang/Math;->round(F)I

    move-result v0

    iput v0, p0, Lcom/xingbook/ui/af;->n:I

    const/high16 v0, 0x4190

    iget v1, p0, Lcom/xingbook/ui/af;->m:F

    mul-float/2addr v0, v1

    invoke-static {v0}, Ljava/lang/Math;->round(F)I

    move-result v0

    iput v0, p0, Lcom/xingbook/ui/af;->o:I

    const/high16 v0, 0x42a0

    iget v1, p0, Lcom/xingbook/ui/af;->m:F

    mul-float/2addr v0, v1

    invoke-static {v0}, Ljava/lang/Math;->round(F)I

    move-result v0

    iput v0, p0, Lcom/xingbook/ui/af;->p:I

    const/high16 v0, 0x4366

    iget v1, p0, Lcom/xingbook/ui/af;->m:F

    mul-float/2addr v0, v1

    invoke-static {v0}, Ljava/lang/Math;->round(F)I

    move-result v0

    iput v0, p0, Lcom/xingbook/ui/af;->q:I

    const/high16 v0, 0x4282

    iget v1, p0, Lcom/xingbook/ui/af;->m:F

    mul-float/2addr v0, v1

    invoke-static {v0}, Ljava/lang/Math;->round(F)I

    move-result v0

    iput v0, p0, Lcom/xingbook/ui/af;->r:I

    invoke-static {p1}, Lcom/xingbook/c/n;->c(Landroid/app/Activity;)I

    move-result v0

    iput v0, p0, Lcom/xingbook/ui/af;->s:I

    invoke-static {p1}, Lcom/xingbook/c/n;->d(Landroid/app/Activity;)I

    move-result v0

    iput v0, p0, Lcom/xingbook/ui/af;->t:I

    return-void
.end method

.method public static a(Landroid/view/ViewGroup;Landroid/app/Activity;)Lcom/xingbook/ui/af;
    .locals 1

    const/4 v0, 0x0

    invoke-static {p0, p1, v0}, Lcom/xingbook/ui/af;->a(Landroid/view/ViewGroup;Landroid/app/Activity;Z)Lcom/xingbook/ui/af;

    move-result-object v0

    return-object v0
.end method

.method public static a(Landroid/view/ViewGroup;Landroid/app/Activity;Z)Lcom/xingbook/ui/af;
    .locals 1

    sget-object v0, Lcom/xingbook/ui/af;->a:Lcom/xingbook/ui/af;

    if-nez v0, :cond_0

    new-instance v0, Lcom/xingbook/ui/af;

    invoke-direct {v0, p1}, Lcom/xingbook/ui/af;-><init>(Landroid/app/Activity;)V

    sput-object v0, Lcom/xingbook/ui/af;->a:Lcom/xingbook/ui/af;

    :cond_0
    sget-object v0, Lcom/xingbook/ui/af;->a:Lcom/xingbook/ui/af;

    iput-boolean p2, v0, Lcom/xingbook/ui/af;->d:Z

    sget-object v0, Lcom/xingbook/ui/af;->a:Lcom/xingbook/ui/af;

    invoke-direct {v0, p0, p1}, Lcom/xingbook/ui/af;->b(Landroid/view/ViewGroup;Landroid/app/Activity;)V

    sget-object v0, Lcom/xingbook/ui/af;->a:Lcom/xingbook/ui/af;

    return-object v0
.end method

.method private b(Landroid/view/ViewGroup;Landroid/app/Activity;)V
    .locals 9

    const/high16 v8, 0x4220

    const/high16 v7, 0x4120

    const/4 v6, 0x1

    const v1, -0xcccccd

    const/4 v3, 0x0

    if-nez p1, :cond_2

    iget-object v0, p0, Lcom/xingbook/ui/af;->k:Landroid/view/ViewGroup;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/ui/af;->k:Landroid/view/ViewGroup;

    iget-object v1, p0, Lcom/xingbook/ui/af;->e:Lcom/xingbook/ui/XbLayout;

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/xingbook/ui/af;->k:Landroid/view/ViewGroup;

    :cond_0
    if-nez p2, :cond_1

    const/4 v0, 0x0

    sput-object v0, Lcom/xingbook/ui/af;->a:Lcom/xingbook/ui/af;

    :cond_1
    :goto_0
    return-void

    :cond_2
    invoke-virtual {p2}, Landroid/app/Activity;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    iput-object v0, p0, Lcom/xingbook/ui/af;->l:Landroid/content/Context;

    iget-object v0, p0, Lcom/xingbook/ui/af;->e:Lcom/xingbook/ui/XbLayout;

    if-nez v0, :cond_3

    new-instance v0, Lcom/xingbook/ui/XbLayout;

    iget-object v2, p0, Lcom/xingbook/ui/af;->l:Landroid/content/Context;

    invoke-direct {v0, v2}, Lcom/xingbook/ui/XbLayout;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/xingbook/ui/af;->e:Lcom/xingbook/ui/XbLayout;

    iget-object v0, p0, Lcom/xingbook/ui/af;->e:Lcom/xingbook/ui/XbLayout;

    invoke-virtual {v0, p0}, Lcom/xingbook/ui/XbLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/xingbook/ui/af;->e:Lcom/xingbook/ui/XbLayout;

    iput-boolean v6, v0, Lcom/xingbook/ui/XbLayout;->c:Z

    iget-object v0, p0, Lcom/xingbook/ui/af;->e:Lcom/xingbook/ui/XbLayout;

    const/high16 v2, -0x8000

    invoke-virtual {v0, v2}, Lcom/xingbook/ui/XbLayout;->setBackgroundColor(I)V

    iget-boolean v0, p0, Lcom/xingbook/ui/af;->d:Z

    if-eqz v0, :cond_5

    iget-object v0, p0, Lcom/xingbook/ui/af;->e:Lcom/xingbook/ui/XbLayout;

    invoke-static {p2}, Lcom/xingbook/c/n;->d(Landroid/app/Activity;)I

    move-result v2

    invoke-static {p2}, Lcom/xingbook/c/n;->c(Landroid/app/Activity;)I

    move-result v4

    invoke-virtual {v0, v3, v3, v2, v4}, Lcom/xingbook/ui/XbLayout;->layout(IIII)V

    :goto_1
    iget-object v0, p0, Lcom/xingbook/ui/af;->e:Lcom/xingbook/ui/XbLayout;

    const v2, 0x15f90

    invoke-virtual {v0, v2}, Lcom/xingbook/ui/XbLayout;->setId(I)V

    new-instance v0, Lcom/xingbook/ui/ad;

    iget-object v2, p0, Lcom/xingbook/ui/af;->l:Landroid/content/Context;

    invoke-direct {v0, v2}, Lcom/xingbook/ui/ad;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/xingbook/ui/af;->f:Lcom/xingbook/ui/ad;

    iget-object v0, p0, Lcom/xingbook/ui/af;->f:Lcom/xingbook/ui/ad;

    iput-boolean v6, v0, Lcom/xingbook/ui/ad;->y:Z

    iget-object v0, p0, Lcom/xingbook/ui/af;->f:Lcom/xingbook/ui/ad;

    const/4 v2, -0x1

    iput v2, v0, Lcom/xingbook/ui/ad;->i:I

    iget-object v0, p0, Lcom/xingbook/ui/af;->f:Lcom/xingbook/ui/ad;

    iput v7, v0, Lcom/xingbook/ui/ad;->j:F

    iget-object v0, p0, Lcom/xingbook/ui/af;->e:Lcom/xingbook/ui/XbLayout;

    iget-object v2, p0, Lcom/xingbook/ui/af;->f:Lcom/xingbook/ui/ad;

    invoke-virtual {v0, v2}, Lcom/xingbook/ui/XbLayout;->addView(Landroid/view/View;)V

    new-instance v0, Lcom/xingbook/ui/ad;

    iget-object v2, p0, Lcom/xingbook/ui/af;->l:Landroid/content/Context;

    invoke-direct {v0, v2}, Lcom/xingbook/ui/ad;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/xingbook/ui/af;->i:Lcom/xingbook/ui/ad;

    iget-object v0, p0, Lcom/xingbook/ui/af;->i:Lcom/xingbook/ui/ad;

    iput v1, v0, Lcom/xingbook/ui/ad;->b:I

    iget-object v0, p0, Lcom/xingbook/ui/af;->i:Lcom/xingbook/ui/ad;

    invoke-static {p2}, Lcom/xingbook/c/n;->f(Landroid/app/Activity;)F

    move-result v2

    mul-float/2addr v2, v8

    iput v2, v0, Lcom/xingbook/ui/ad;->c:F

    iget-object v0, p0, Lcom/xingbook/ui/af;->i:Lcom/xingbook/ui/ad;

    const/16 v2, 0x11

    iput v2, v0, Lcom/xingbook/ui/ad;->d:I

    iget-object v0, p0, Lcom/xingbook/ui/af;->i:Lcom/xingbook/ui/ad;

    const/4 v2, 0x2

    move v4, v3

    move v5, v3

    invoke-virtual/range {v0 .. v6}, Lcom/xingbook/ui/ad;->a(IIIIII)V

    iget-object v0, p0, Lcom/xingbook/ui/af;->e:Lcom/xingbook/ui/XbLayout;

    iget-object v2, p0, Lcom/xingbook/ui/af;->i:Lcom/xingbook/ui/ad;

    invoke-virtual {v0, v2}, Lcom/xingbook/ui/XbLayout;->addView(Landroid/view/View;)V

    new-instance v0, Landroid/widget/TextView;

    iget-object v2, p0, Lcom/xingbook/ui/af;->l:Landroid/content/Context;

    invoke-direct {v0, v2}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/xingbook/ui/af;->j:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/xingbook/ui/af;->j:Landroid/widget/TextView;

    const/16 v2, 0x13

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setGravity(I)V

    iget-object v0, p0, Lcom/xingbook/ui/af;->j:Landroid/widget/TextView;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V

    iget-object v0, p0, Lcom/xingbook/ui/af;->j:Landroid/widget/TextView;

    const/high16 v1, 0x4210

    invoke-static {p2}, Lcom/xingbook/c/n;->f(Landroid/app/Activity;)F

    move-result v2

    mul-float/2addr v1, v2

    invoke-virtual {v0, v3, v1}, Landroid/widget/TextView;->setTextSize(IF)V

    iget-object v0, p0, Lcom/xingbook/ui/af;->e:Lcom/xingbook/ui/XbLayout;

    iget-object v1, p0, Lcom/xingbook/ui/af;->j:Landroid/widget/TextView;

    invoke-virtual {v0, v1}, Lcom/xingbook/ui/XbLayout;->addView(Landroid/view/View;)V

    new-instance v0, Lcom/xingbook/ui/ad;

    iget-object v1, p0, Lcom/xingbook/ui/af;->l:Landroid/content/Context;

    invoke-direct {v0, v1}, Lcom/xingbook/ui/ad;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/xingbook/ui/af;->g:Lcom/xingbook/ui/ad;

    iget-object v0, p0, Lcom/xingbook/ui/af;->g:Lcom/xingbook/ui/ad;

    const v1, 0x15f91

    invoke-virtual {v0, v1}, Lcom/xingbook/ui/ad;->setId(I)V

    iget-object v0, p0, Lcom/xingbook/ui/af;->g:Lcom/xingbook/ui/ad;

    const v1, -0x33ffec

    iput v1, v0, Lcom/xingbook/ui/ad;->i:I

    iget-object v0, p0, Lcom/xingbook/ui/af;->g:Lcom/xingbook/ui/ad;

    iput v7, v0, Lcom/xingbook/ui/ad;->j:F

    iget-object v0, p0, Lcom/xingbook/ui/af;->g:Lcom/xingbook/ui/ad;

    const/16 v1, 0x11

    iput v1, v0, Lcom/xingbook/ui/ad;->d:I

    iget-object v0, p0, Lcom/xingbook/ui/af;->g:Lcom/xingbook/ui/ad;

    invoke-static {p2}, Lcom/xingbook/c/n;->f(Landroid/app/Activity;)F

    move-result v1

    mul-float/2addr v1, v8

    iput v1, v0, Lcom/xingbook/ui/ad;->c:F

    iget-object v0, p0, Lcom/xingbook/ui/af;->g:Lcom/xingbook/ui/ad;

    const/4 v1, -0x1

    iput v1, v0, Lcom/xingbook/ui/ad;->b:I

    iget-object v0, p0, Lcom/xingbook/ui/af;->g:Lcom/xingbook/ui/ad;

    const v1, -0xff9934

    invoke-virtual {v0, v1}, Lcom/xingbook/ui/ad;->setHilighted(I)V

    iget-object v0, p0, Lcom/xingbook/ui/af;->e:Lcom/xingbook/ui/XbLayout;

    iget-object v1, p0, Lcom/xingbook/ui/af;->g:Lcom/xingbook/ui/ad;

    invoke-virtual {v0, v1}, Lcom/xingbook/ui/XbLayout;->addView(Landroid/view/View;)V

    iget-object v0, p0, Lcom/xingbook/ui/af;->g:Lcom/xingbook/ui/ad;

    invoke-virtual {v0}, Lcom/xingbook/ui/ad;->b()Lcom/xingbook/ui/ad;

    move-result-object v0

    iput-object v0, p0, Lcom/xingbook/ui/af;->h:Lcom/xingbook/ui/ad;

    iget-object v0, p0, Lcom/xingbook/ui/af;->h:Lcom/xingbook/ui/ad;

    const v1, 0x15f92

    invoke-virtual {v0, v1}, Lcom/xingbook/ui/ad;->setId(I)V

    iget-object v0, p0, Lcom/xingbook/ui/af;->e:Lcom/xingbook/ui/XbLayout;

    iget-object v1, p0, Lcom/xingbook/ui/af;->h:Lcom/xingbook/ui/ad;

    invoke-virtual {v0, v1}, Lcom/xingbook/ui/XbLayout;->addView(Landroid/view/View;)V

    :cond_3
    iget-object v0, p0, Lcom/xingbook/ui/af;->k:Landroid/view/ViewGroup;

    invoke-virtual {p1, v0}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_1

    iget-object v0, p0, Lcom/xingbook/ui/af;->k:Landroid/view/ViewGroup;

    if-eqz v0, :cond_4

    iget-object v0, p0, Lcom/xingbook/ui/af;->k:Landroid/view/ViewGroup;

    iget-object v1, p0, Lcom/xingbook/ui/af;->e:Lcom/xingbook/ui/XbLayout;

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V

    :cond_4
    iput-object p1, p0, Lcom/xingbook/ui/af;->k:Landroid/view/ViewGroup;

    goto/16 :goto_0

    :cond_5
    iget-object v0, p0, Lcom/xingbook/ui/af;->e:Lcom/xingbook/ui/XbLayout;

    invoke-static {p2}, Lcom/xingbook/c/n;->c(Landroid/app/Activity;)I

    move-result v2

    invoke-static {p2}, Lcom/xingbook/c/n;->d(Landroid/app/Activity;)I

    move-result v4

    invoke-virtual {v0, v3, v3, v2, v4}, Lcom/xingbook/ui/XbLayout;->layout(IIII)V

    goto/16 :goto_1
.end method


# virtual methods
.method public a()V
    .locals 2

    iget-object v0, p0, Lcom/xingbook/ui/af;->k:Landroid/view/ViewGroup;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/ui/af;->k:Landroid/view/ViewGroup;

    iget-object v1, p0, Lcom/xingbook/ui/af;->e:Lcom/xingbook/ui/XbLayout;

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V

    :cond_0
    return-void
.end method

.method public a(Landroid/app/Activity;Ljava/lang/String;)V
    .locals 13

    const/4 v7, 0x1

    const v10, -0xe74b13

    const-string v1, "\u767b\u5f55\u63d0\u793a"

    const-string v3, "\u53d6\u6d88"

    const-string v4, "\u7acb\u5373\u767b\u5f55"

    const/4 v5, 0x0

    new-instance v6, Lcom/xingbook/ui/ag;

    invoke-direct {v6, p0, p1}, Lcom/xingbook/ui/ag;-><init>(Lcom/xingbook/ui/af;Landroid/app/Activity;)V

    const v9, -0x555556

    const v11, -0x333334

    move-object v0, p0

    move-object v2, p2

    move v8, v7

    move v12, v10

    invoke-virtual/range {v0 .. v12}, Lcom/xingbook/ui/af;->a(Ljava/lang/String;Ljava/lang/CharSequence;Ljava/lang/String;Ljava/lang/String;Landroid/view/View$OnClickListener;Landroid/view/View$OnClickListener;ZZIIII)V

    return-void
.end method

.method public a(Landroid/app/Activity;Ljava/lang/String;ILjava/lang/String;)V
    .locals 17

    const-string v5, "\u767b\u5f55\u63d0\u793a"

    const-string v7, "\u53d6\u6d88"

    const-string v8, "\u7acb\u5373\u767b\u5f55"

    const/4 v9, 0x0

    new-instance v10, Lcom/xingbook/ui/ah;

    move-object/from16 v0, p0

    move-object/from16 v1, p1

    move-object/from16 v2, p4

    move/from16 v3, p3

    invoke-direct {v10, v0, v1, v2, v3}, Lcom/xingbook/ui/ah;-><init>(Lcom/xingbook/ui/af;Landroid/app/Activity;Ljava/lang/String;I)V

    const/4 v11, 0x1

    const/4 v12, 0x1

    const v13, -0x555556

    const v14, -0xe74b13

    const v15, -0x333334

    const v16, -0xe74b13

    move-object/from16 v4, p0

    move-object/from16 v6, p2

    invoke-virtual/range {v4 .. v16}, Lcom/xingbook/ui/af;->a(Ljava/lang/String;Ljava/lang/CharSequence;Ljava/lang/String;Ljava/lang/String;Landroid/view/View$OnClickListener;Landroid/view/View$OnClickListener;ZZIIII)V

    return-void
.end method

.method public a(Ljava/lang/String;Ljava/lang/CharSequence;Ljava/lang/String;Ljava/lang/String;Landroid/view/View$OnClickListener;Landroid/view/View$OnClickListener;ZZ)V
    .locals 12

    const v9, -0x33ffec

    const v10, -0xff9934

    const v11, -0xcccccd

    move-object v0, p0

    move-object v1, p1

    move-object v2, p2

    move-object v3, p3

    move-object/from16 v4, p4

    move-object/from16 v5, p5

    move-object/from16 v6, p6

    move/from16 v7, p7

    move/from16 v8, p8

    invoke-virtual/range {v0 .. v11}, Lcom/xingbook/ui/af;->a(Ljava/lang/String;Ljava/lang/CharSequence;Ljava/lang/String;Ljava/lang/String;Landroid/view/View$OnClickListener;Landroid/view/View$OnClickListener;ZZIII)V

    return-void
.end method

.method public a(Ljava/lang/String;Ljava/lang/CharSequence;Ljava/lang/String;Ljava/lang/String;Landroid/view/View$OnClickListener;Landroid/view/View$OnClickListener;ZZIII)V
    .locals 13

    move-object v0, p0

    move-object v1, p1

    move-object v2, p2

    move-object/from16 v3, p3

    move-object/from16 v4, p4

    move-object/from16 v5, p5

    move-object/from16 v6, p6

    move/from16 v7, p7

    move/from16 v8, p8

    move/from16 v9, p9

    move/from16 v10, p9

    move/from16 v11, p10

    move/from16 v12, p11

    invoke-virtual/range {v0 .. v12}, Lcom/xingbook/ui/af;->a(Ljava/lang/String;Ljava/lang/CharSequence;Ljava/lang/String;Ljava/lang/String;Landroid/view/View$OnClickListener;Landroid/view/View$OnClickListener;ZZIIII)V

    return-void
.end method

.method public a(Ljava/lang/String;Ljava/lang/CharSequence;Ljava/lang/String;Ljava/lang/String;Landroid/view/View$OnClickListener;Landroid/view/View$OnClickListener;ZZIIII)V
    .locals 8

    iget-object v1, p0, Lcom/xingbook/ui/af;->k:Landroid/view/ViewGroup;

    if-nez v1, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    iget-object v1, p0, Lcom/xingbook/ui/af;->g:Lcom/xingbook/ui/ad;

    move/from16 v0, p9

    iput v0, v1, Lcom/xingbook/ui/ad;->i:I

    iget-object v1, p0, Lcom/xingbook/ui/af;->g:Lcom/xingbook/ui/ad;

    move/from16 v0, p11

    invoke-virtual {v1, v0}, Lcom/xingbook/ui/ad;->setHilighted(I)V

    iget-object v1, p0, Lcom/xingbook/ui/af;->h:Lcom/xingbook/ui/ad;

    move/from16 v0, p10

    iput v0, v1, Lcom/xingbook/ui/ad;->i:I

    iget-object v1, p0, Lcom/xingbook/ui/af;->h:Lcom/xingbook/ui/ad;

    move/from16 v0, p11

    invoke-virtual {v1, v0}, Lcom/xingbook/ui/ad;->setHilighted(I)V

    iget-object v1, p0, Lcom/xingbook/ui/af;->i:Lcom/xingbook/ui/ad;

    const/4 v3, 0x2

    const/4 v4, 0x0

    const/4 v5, 0x0

    const/4 v6, 0x0

    const/4 v7, 0x1

    move/from16 v2, p12

    invoke-virtual/range {v1 .. v7}, Lcom/xingbook/ui/ad;->a(IIIIII)V

    iput-boolean p7, p0, Lcom/xingbook/ui/af;->b:Z

    move/from16 v0, p8

    iput-boolean v0, p0, Lcom/xingbook/ui/af;->c:Z

    if-eqz p1, :cond_2

    const-string v1, ""

    invoke-virtual {v1, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_2

    const/4 v1, 0x1

    :goto_1
    const/4 v2, 0x0

    invoke-interface {p2, v2}, Ljava/lang/CharSequence;->charAt(I)C

    move-result v2

    const/16 v3, 0x3c

    if-ne v2, v3, :cond_3

    iget-object v2, p0, Lcom/xingbook/ui/af;->j:Landroid/widget/TextView;

    invoke-interface {p2}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v3}, Landroid/text/Html;->fromHtml(Ljava/lang/String;)Landroid/text/Spanned;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :goto_2
    iget-boolean v2, p0, Lcom/xingbook/ui/af;->d:Z

    if-eqz v2, :cond_4

    iget-object v2, p0, Lcom/xingbook/ui/af;->e:Lcom/xingbook/ui/XbLayout;

    const/4 v3, 0x0

    const/4 v4, 0x0

    iget v5, p0, Lcom/xingbook/ui/af;->t:I

    iget v6, p0, Lcom/xingbook/ui/af;->s:I

    invoke-virtual {v2, v3, v4, v5, v6}, Lcom/xingbook/ui/XbLayout;->layout(IIII)V

    :goto_3
    iget-object v2, p0, Lcom/xingbook/ui/af;->j:Landroid/widget/TextView;

    iget v3, p0, Lcom/xingbook/ui/af;->n:I

    iget v4, p0, Lcom/xingbook/ui/af;->o:I

    mul-int/lit8 v4, v4, 0x2

    sub-int/2addr v3, v4

    int-to-float v3, v3

    invoke-static {v3}, Ljava/lang/Math;->round(F)I

    move-result v3

    const/high16 v4, -0x8000

    invoke-static {v3, v4}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I

    move-result v3

    const/4 v4, 0x0

    invoke-virtual {v2, v3, v4}, Landroid/widget/TextView;->measure(II)V

    iget-object v2, p0, Lcom/xingbook/ui/af;->j:Landroid/widget/TextView;

    invoke-virtual {v2}, Landroid/widget/TextView;->getMeasuredHeight()I

    move-result v4

    if-nez p3, :cond_5

    if-nez p4, :cond_5

    const/4 v2, 0x0

    :goto_4
    iget v3, p0, Lcom/xingbook/ui/af;->o:I

    mul-int/lit8 v3, v3, 0x5

    add-int/2addr v3, v4

    if-eqz v2, :cond_6

    iget v2, p0, Lcom/xingbook/ui/af;->p:I

    :goto_5
    add-int/2addr v3, v2

    if-eqz v1, :cond_7

    iget v2, p0, Lcom/xingbook/ui/af;->r:I

    :goto_6
    add-int v5, v3, v2

    iget-boolean v2, p0, Lcom/xingbook/ui/af;->d:Z

    if-eqz v2, :cond_8

    iget v2, p0, Lcom/xingbook/ui/af;->t:I

    iget v3, p0, Lcom/xingbook/ui/af;->n:I

    sub-int/2addr v2, v3

    div-int/lit8 v2, v2, 0x2

    int-to-float v2, v2

    invoke-static {v2}, Ljava/lang/Math;->round(F)I

    move-result v3

    iget v2, p0, Lcom/xingbook/ui/af;->s:I

    sub-int/2addr v2, v5

    div-int/lit8 v2, v2, 0x2

    int-to-float v2, v2

    invoke-static {v2}, Ljava/lang/Math;->round(F)I

    move-result v2

    :goto_7
    iget-object v6, p0, Lcom/xingbook/ui/af;->f:Lcom/xingbook/ui/ad;

    iget v7, p0, Lcom/xingbook/ui/af;->n:I

    add-int/2addr v7, v3

    add-int/2addr v5, v2

    invoke-virtual {v6, v3, v2, v7, v5}, Lcom/xingbook/ui/ad;->layout(IIII)V

    if-eqz v1, :cond_9

    iget-object v1, p0, Lcom/xingbook/ui/af;->i:Lcom/xingbook/ui/ad;

    iput-object p1, v1, Lcom/xingbook/ui/ad;->a:Ljava/lang/String;

    iget-object v1, p0, Lcom/xingbook/ui/af;->i:Lcom/xingbook/ui/ad;

    const/4 v5, 0x0

    invoke-virtual {v1, v5}, Lcom/xingbook/ui/ad;->setVisibility(I)V

    iget-object v5, p0, Lcom/xingbook/ui/af;->i:Lcom/xingbook/ui/ad;

    iget v1, p0, Lcom/xingbook/ui/af;->o:I

    add-int v6, v3, v1

    iget v1, p0, Lcom/xingbook/ui/af;->n:I

    add-int/2addr v1, v3

    iget v7, p0, Lcom/xingbook/ui/af;->o:I

    sub-int v7, v1, v7

    iget v1, p0, Lcom/xingbook/ui/af;->r:I

    add-int/2addr v1, v2

    invoke-virtual {v5, v6, v2, v7, v1}, Lcom/xingbook/ui/ad;->layout(IIII)V

    :goto_8
    iget-object v2, p0, Lcom/xingbook/ui/af;->i:Lcom/xingbook/ui/ad;

    invoke-virtual {v2}, Lcom/xingbook/ui/ad;->invalidate()V

    iget v2, p0, Lcom/xingbook/ui/af;->o:I

    add-int/2addr v2, v1

    iget-object v5, p0, Lcom/xingbook/ui/af;->j:Landroid/widget/TextView;

    iget v1, p0, Lcom/xingbook/ui/af;->o:I

    add-int v6, v3, v1

    iget v1, p0, Lcom/xingbook/ui/af;->n:I

    add-int/2addr v1, v3

    iget v7, p0, Lcom/xingbook/ui/af;->o:I

    sub-int v7, v1, v7

    add-int v1, v2, v4

    invoke-virtual {v5, v6, v2, v7, v1}, Landroid/widget/TextView;->layout(IIII)V

    if-eqz p3, :cond_a

    const/4 v2, 0x1

    move v5, v2

    :goto_9
    if-eqz p4, :cond_b

    const/4 v2, 0x1

    move v4, v2

    :goto_a
    if-eqz v5, :cond_10

    iget v2, p0, Lcom/xingbook/ui/af;->o:I

    mul-int/lit8 v2, v2, 0x2

    add-int/2addr v2, v1

    iget-boolean v1, p0, Lcom/xingbook/ui/af;->d:Z

    if-eqz v1, :cond_d

    iget v1, p0, Lcom/xingbook/ui/af;->t:I

    iget v3, p0, Lcom/xingbook/ui/af;->q:I

    sub-int v3, v1, v3

    if-eqz v4, :cond_c

    iget v1, p0, Lcom/xingbook/ui/af;->q:I

    iget v5, p0, Lcom/xingbook/ui/af;->o:I

    add-int/2addr v1, v5

    :goto_b
    sub-int v1, v3, v1

    div-int/lit8 v1, v1, 0x2

    :goto_c
    iget-object v3, p0, Lcom/xingbook/ui/af;->g:Lcom/xingbook/ui/ad;

    iput-object p3, v3, Lcom/xingbook/ui/ad;->a:Ljava/lang/String;

    iget-object v5, p0, Lcom/xingbook/ui/af;->g:Lcom/xingbook/ui/ad;

    iget v3, p0, Lcom/xingbook/ui/af;->q:I

    add-int/2addr v3, v1

    iget v6, p0, Lcom/xingbook/ui/af;->p:I

    add-int/2addr v6, v2

    invoke-virtual {v5, v1, v2, v3, v6}, Lcom/xingbook/ui/ad;->layout(IIII)V

    iget-object v1, p0, Lcom/xingbook/ui/af;->g:Lcom/xingbook/ui/ad;

    invoke-virtual {v1}, Lcom/xingbook/ui/ad;->invalidate()V

    if-eqz p5, :cond_f

    iget-object v1, p0, Lcom/xingbook/ui/af;->g:Lcom/xingbook/ui/ad;

    invoke-virtual {v1, p5}, Lcom/xingbook/ui/ad;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    :goto_d
    iget-object v1, p0, Lcom/xingbook/ui/af;->g:Lcom/xingbook/ui/ad;

    const/4 v5, 0x0

    invoke-virtual {v1, v5}, Lcom/xingbook/ui/ad;->setVisibility(I)V

    move v1, v2

    :goto_e
    if-eqz v4, :cond_12

    if-eqz p6, :cond_11

    iget-object v2, p0, Lcom/xingbook/ui/af;->h:Lcom/xingbook/ui/ad;

    invoke-virtual {v2, p6}, Lcom/xingbook/ui/ad;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    :goto_f
    iget-object v2, p0, Lcom/xingbook/ui/af;->h:Lcom/xingbook/ui/ad;

    const/4 v4, 0x0

    invoke-virtual {v2, v4}, Lcom/xingbook/ui/ad;->setVisibility(I)V

    iget-object v2, p0, Lcom/xingbook/ui/af;->h:Lcom/xingbook/ui/ad;

    iput-object p4, v2, Lcom/xingbook/ui/ad;->a:Ljava/lang/String;

    iget-object v2, p0, Lcom/xingbook/ui/af;->h:Lcom/xingbook/ui/ad;

    iget v4, p0, Lcom/xingbook/ui/af;->o:I

    add-int/2addr v3, v4

    iget v4, p0, Lcom/xingbook/ui/af;->q:I

    add-int/2addr v4, v3

    iget v5, p0, Lcom/xingbook/ui/af;->p:I

    add-int/2addr v5, v1

    invoke-virtual {v2, v3, v1, v4, v5}, Lcom/xingbook/ui/ad;->layout(IIII)V

    iget-object v1, p0, Lcom/xingbook/ui/af;->h:Lcom/xingbook/ui/ad;

    invoke-virtual {v1}, Lcom/xingbook/ui/ad;->invalidate()V

    :goto_10
    iget-object v1, p0, Lcom/xingbook/ui/af;->k:Landroid/view/ViewGroup;

    iget-object v2, p0, Lcom/xingbook/ui/af;->e:Lcom/xingbook/ui/XbLayout;

    invoke-virtual {v2}, Lcom/xingbook/ui/XbLayout;->getParent()Landroid/view/ViewParent;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_0

    iget-object v1, p0, Lcom/xingbook/ui/af;->k:Landroid/view/ViewGroup;

    iget-object v2, p0, Lcom/xingbook/ui/af;->e:Lcom/xingbook/ui/XbLayout;

    invoke-virtual {v1, v2}, Landroid/view/ViewGroup;->addView(Landroid/view/View;)V

    goto/16 :goto_0

    :cond_2
    const/4 v1, 0x0

    goto/16 :goto_1

    :cond_3
    iget-object v2, p0, Lcom/xingbook/ui/af;->j:Landroid/widget/TextView;

    invoke-virtual {v2, p2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto/16 :goto_2

    :cond_4
    iget-object v2, p0, Lcom/xingbook/ui/af;->e:Lcom/xingbook/ui/XbLayout;

    const/4 v3, 0x0

    const/4 v4, 0x0

    iget v5, p0, Lcom/xingbook/ui/af;->s:I

    iget v6, p0, Lcom/xingbook/ui/af;->t:I

    invoke-virtual {v2, v3, v4, v5, v6}, Lcom/xingbook/ui/XbLayout;->layout(IIII)V

    goto/16 :goto_3

    :cond_5
    const/4 v2, 0x1

    goto/16 :goto_4

    :cond_6
    const/4 v2, 0x0

    goto/16 :goto_5

    :cond_7
    const/4 v2, 0x0

    goto/16 :goto_6

    :cond_8
    iget v2, p0, Lcom/xingbook/ui/af;->s:I

    iget v3, p0, Lcom/xingbook/ui/af;->n:I

    sub-int/2addr v2, v3

    div-int/lit8 v2, v2, 0x2

    int-to-float v2, v2

    invoke-static {v2}, Ljava/lang/Math;->round(F)I

    move-result v3

    iget v2, p0, Lcom/xingbook/ui/af;->t:I

    sub-int/2addr v2, v5

    div-int/lit8 v2, v2, 0x2

    int-to-float v2, v2

    invoke-static {v2}, Ljava/lang/Math;->round(F)I

    move-result v2

    goto/16 :goto_7

    :cond_9
    iget-object v1, p0, Lcom/xingbook/ui/af;->i:Lcom/xingbook/ui/ad;

    const/4 v5, 0x0

    iput-object v5, v1, Lcom/xingbook/ui/ad;->a:Ljava/lang/String;

    iget-object v1, p0, Lcom/xingbook/ui/af;->i:Lcom/xingbook/ui/ad;

    const/16 v5, 0x8

    invoke-virtual {v1, v5}, Lcom/xingbook/ui/ad;->setVisibility(I)V

    iget v1, p0, Lcom/xingbook/ui/af;->o:I

    add-int/2addr v1, v2

    goto/16 :goto_8

    :cond_a
    const/4 v2, 0x0

    move v5, v2

    goto/16 :goto_9

    :cond_b
    const/4 v2, 0x0

    move v4, v2

    goto/16 :goto_a

    :cond_c
    const/4 v1, 0x0

    goto/16 :goto_b

    :cond_d
    iget v1, p0, Lcom/xingbook/ui/af;->s:I

    iget v3, p0, Lcom/xingbook/ui/af;->q:I

    sub-int v3, v1, v3

    if-eqz v4, :cond_e

    iget v1, p0, Lcom/xingbook/ui/af;->q:I

    iget v5, p0, Lcom/xingbook/ui/af;->o:I

    add-int/2addr v1, v5

    :goto_11
    sub-int v1, v3, v1

    div-int/lit8 v1, v1, 0x2

    goto/16 :goto_c

    :cond_e
    const/4 v1, 0x0

    goto :goto_11

    :cond_f
    iget-object v1, p0, Lcom/xingbook/ui/af;->g:Lcom/xingbook/ui/ad;

    invoke-virtual {v1, p0}, Lcom/xingbook/ui/ad;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    goto/16 :goto_d

    :cond_10
    iget-object v2, p0, Lcom/xingbook/ui/af;->g:Lcom/xingbook/ui/ad;

    const/16 v5, 0x8

    invoke-virtual {v2, v5}, Lcom/xingbook/ui/ad;->setVisibility(I)V

    goto/16 :goto_e

    :cond_11
    iget-object v2, p0, Lcom/xingbook/ui/af;->h:Lcom/xingbook/ui/ad;

    invoke-virtual {v2, p0}, Lcom/xingbook/ui/ad;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    goto/16 :goto_f

    :cond_12
    iget-object v1, p0, Lcom/xingbook/ui/af;->h:Lcom/xingbook/ui/ad;

    const/16 v2, 0x8

    invoke-virtual {v1, v2}, Lcom/xingbook/ui/ad;->setVisibility(I)V

    goto/16 :goto_10
.end method

.method public a(ILandroid/view/KeyEvent;)Z
    .locals 2

    const/4 v0, 0x4

    if-ne p1, v0, :cond_1

    iget-object v0, p0, Lcom/xingbook/ui/af;->k:Landroid/view/ViewGroup;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/xingbook/ui/af;->k:Landroid/view/ViewGroup;

    iget-object v1, p0, Lcom/xingbook/ui/af;->e:Lcom/xingbook/ui/XbLayout;

    invoke-virtual {v1}, Lcom/xingbook/ui/XbLayout;->getParent()Landroid/view/ViewParent;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    iget-boolean v0, p0, Lcom/xingbook/ui/af;->c:Z

    if-eqz v0, :cond_0

    invoke-virtual {p0}, Lcom/xingbook/ui/af;->a()V

    :cond_0
    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_1
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public b()Z
    .locals 2

    iget-object v0, p0, Lcom/xingbook/ui/af;->k:Landroid/view/ViewGroup;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/ui/af;->k:Landroid/view/ViewGroup;

    iget-object v1, p0, Lcom/xingbook/ui/af;->e:Lcom/xingbook/ui/XbLayout;

    invoke-virtual {v1}, Lcom/xingbook/ui/XbLayout;->getParent()Landroid/view/ViewParent;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public onClick(Landroid/view/View;)V
    .locals 2

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    const v1, 0x15f90

    if-ne v0, v1, :cond_0

    iget-boolean v1, p0, Lcom/xingbook/ui/af;->b:Z

    if-nez v1, :cond_1

    :cond_0
    const v1, 0x15f91

    if-eq v0, v1, :cond_1

    const v1, 0x15f92

    if-ne v0, v1, :cond_2

    :cond_1
    invoke-virtual {p0}, Lcom/xingbook/ui/af;->a()V

    :cond_2
    return-void
.end method
